package it.free.maya;

import java.util.List;

import org.apache.solr.client.solrj.response.FacetField;
import org.apache.solr.common.SolrDocumentList;

/**
 * DTO to carry results for query and faceted search as well
 * @author Stefano Falconetti
 */
public class FacetedSearchResult {

	private SolrDocumentList solrDocumentList = null;
	private List<FacetField> facetFields = null;
	
	/**
	 * Class factory
	 */
	public static final FacetedSearchResult createInstance(){
		return new FacetedSearchResult();
	}
	
	/**
	 * Made unusable
	 */
	private FacetedSearchResult(){
		
	}
	
	/**
	 * @return the solrDocumentList
	 */
	public SolrDocumentList getSolrDocumentList() {
		return this.solrDocumentList;
	}
	/**
	 * @param solrDocumentList the solrDocumentList to set
	 */
	public void setSolrDocumentList(SolrDocumentList solrDocumentList) {
		this.solrDocumentList = solrDocumentList;
	}
	/**
	 * @return the facetFields
	 */
	public List<FacetField> getFacetFields() {
		return this.facetFields;
	}
	/**
	 * @param facetFields the facetFields to set
	 */
	public void setFacetFields(List<FacetField> facetFields) {
		this.facetFields = facetFields;
	}
}
